#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@File Name  : update_page.py
@Author     : LeeCQ
@Date-Time  : 2019/12/16 14:37

"""
import os

pip = 'pip3 install '
plugs = ['requests',        # HTTP相关
         'b2',              # B2 - Backblaze 插件
         'BitTorrent-bencode',  # BT种子解析
         'py3-bencode',
         'psutil',          # 网络I/O相关
         'WsgiDAV',         # webDAV相关插件
         'Beautifulsoup4', 'lxml',  # bs4 & 插件
         'pymysql',         # MySQL数据库
         'DBUtils',         # 数据库连接池
         ]
# 
if os.sys.platform.startswith('win'): plugs.append('pycryptodome')
else: plugs.append('pycrypto')

a = [os.system(pip + p) for p in plugs]

print(a)
